package com.YxyBackMange.Entity.Ware;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.hibernate.validator.constraints.Length;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.Set;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 实体类WareAppointment
 * 数据表ware_tb_appointment
 * 预约表
 * 2017-12-3 3:47:31
 * @author Administrator
 *
 */
@Table(name = "ware_tb_appointment")
public class WareAppointment  implements Serializable {

		//
	@Id
	@GeneratedValue(generator = "JDBC")


	private Integer id;
		//用户编号


	private Integer userId;
		//商品编号


	private Integer goodsId;
		//预约时间


	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date appointmentTime;
		//创建时间


	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createTime;
		//状态编号


	private Integer stateId;
		//联系人


	private String contactsName;
		//联系电话


	private String contactsPhone;
		//接待人


	private String receiverName;
		//接待联系电话


	private String receiverPhone;
		//最新操作时间


	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date opterateTime;
		//预约类型(修理，看车等)


	private Integer appointmentTypeId;


	public WareAppointment(){

	}
	public WareAppointment(Integer id){
		this.id=id;
	}
	public void setId(Integer id){
		this.id=id;
	}

	public Integer getId(){
		return this.id;
	}
	public void setUserId(Integer userId){
		this.userId=userId;
	}

	public Integer getUserId(){
		return this.userId;
	}
	public void setGoodsId(Integer goodsId){
		this.goodsId=goodsId;
	}

	public Integer getGoodsId(){
		return this.goodsId;
	}
	public void setAppointmentTime(Date appointmentTime){
		this.appointmentTime=appointmentTime;
	}

	public Date getAppointmentTime(){
		return this.appointmentTime;
	}
	public void setCreateTime(Date createTime){
		this.createTime=createTime;
	}

	public Date getCreateTime(){
		return this.createTime;
	}
	public void setStateId(Integer stateId){
		this.stateId=stateId;
	}

	public Integer getStateId(){
		return this.stateId;
	}
	public void setContactsName(String contactsName){
		this.contactsName=contactsName;
	}

	public String getContactsName(){
		return this.contactsName;
	}
	public void setContactsPhone(String contactsPhone){
		this.contactsPhone=contactsPhone;
	}

	public String getContactsPhone(){
		return this.contactsPhone;
	}
	public void setReceiverName(String receiverName){
		this.receiverName=receiverName;
	}

	public String getReceiverName(){
		return this.receiverName;
	}
	public void setReceiverPhone(String receiverPhone){
		this.receiverPhone=receiverPhone;
	}

	public String getReceiverPhone(){
		return this.receiverPhone;
	}
	public void setOpterateTime(Date opterateTime){
		this.opterateTime=opterateTime;
	}

	public Date getOpterateTime(){
		return this.opterateTime;
	}
	public void setAppointmentTypeId(Integer appointmentTypeId){
		this.appointmentTypeId=appointmentTypeId;
	}

	public Integer getAppointmentTypeId(){
		return this.appointmentTypeId;
	}


}
